package ch10.gongju;

import java.sql.*;

public class JdbcUtils {
    public  static Connection getConnection() throws ClassNotFoundException, SQLException{
        Class.forName("com.mysql.jdbc.Driver");
        String url = "jdbc:mysql://localhost:3306/smbms";
        String user = "root";
        String password = "123456";
        Connection connection = DriverManager.getConnection(url,user,password);
        return connection;
    }

    public static void close(Connection connection, PreparedStatement ps, ResultSet rs) {
    }
}
